home *** CD-ROM | disk | FTP | other *** search
/ Champak 125 / Vol 125 (Damaged).iso / games / orbox.swf / scripts / DefineSprite_153 / frame_1 / DoAction.as
Encoding:
Text File  |  2008-11-13  |  572 b   |  28 lines

  1. if(this.hitTest(_root.pra.done) == true)
  2. {
  3.    if(sou != 1)
  4.    {
  5.       _root.ricSound.stop();
  6.       _root.ricSound.start();
  7.    }
  8.    sou = 1;
  9.    if(_root.m1 == 1)
  10.    {
  11.       _root.snd.gotoAndPlay(10);
  12.       _root.x = _root.lev._x + _root.lev.fon._x + _X;
  13.       _root.y = _root.lev._y + _root.lev.fon._y + _Y;
  14.       _root.m = 4;
  15.    }
  16.    if(_root.m1 == 2)
  17.    {
  18.       _root.snd.gotoAndPlay(10);
  19.       _root.x = _root.lev._x + _root.lev.fon._x + _X;
  20.       _root.y = _root.lev._y + _root.lev.fon._y + _Y;
  21.       _root.m = 3;
  22.    }
  23. }
  24. else
  25. {
  26.    sou = 0;
  27. }
  28.